########################################
#
# HI3531/3521 specific setup
# 
########################################
ifeq ($(BOARD), HI3521)
export ARCH				=arm
export PLATFORM			=HI3521
export HISIL_SDK		=$(SDK_HISIL_3521)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
endif

ifeq ($(BOARD), HI3521A_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3521A
export HISIL_SDK		=$(SDK_HISIL_3521A)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V400)
export SINGLE_NAND_FLASH=true
export PROJECT_HVR		=true
endif

ifeq ($(BOARD), HI3531)
export ARCH				=arm
export PLATFORM			=HI3531
export HISIL_SDK		=$(SDK_HISIL_3531)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
export SLAVE_CHIP		=true
endif

ifeq ($(BOARD), HI3531_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3531
export HISIL_SDK		=$(SDK_HISIL_3531)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
export SINGLE_NAND_FLASH=true
export PROJECT_HVR		=true
endif

ifeq ($(BOARD), HI3531A_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3531A
export HISIL_SDK		=$(SDK_HISIL_3531A)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V400)
export SINGLE_NAND_FLASH=true
export PROJECT_HVR		=true
export SEC_YAFFS2_ENABLE=true
endif

ifeq ($(BOARD), HI3520A)
export ARCH				=arm
export PLATFORM			=HI3520A
export HISIL_SDK		=$(SDK_HISIL_3520A)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
endif

ifeq ($(BOARD), HI3520D)
export ARCH				=arm
export PLATFORM			=HI3520D
export HISIL_SDK		=$(SDK_HISIL_3520D)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V100_NPTL)
export SMALL_FLASH_SIZE	=true
endif

ifeq ($(BOARD), HI3520D_SINGLE_NOR_16M)
export ARCH				=arm
export PLATFORM			=HI3520D
export HISIL_SDK		=$(SDK_HISIL_3520D)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V100_NPTL)
export SINGLE_NOR_FLASH	=true
export PROJECT_HVR		=true
endif

ifeq ($(BOARD), HI3520D_V300_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3520D_V300
export HISIL_SDK		=$(SDK_HISIL_3521A)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V400)
export SINGLE_NAND_FLASH=true
export PROJECT_HVR		=true
endif

ifeq ($(BOARD), HI3516C_SINGLE_NOR_16M)
export ARCH				=arm
export PLATFORM			=HI3516C
export HISIL_SDK		=$(SDK_HISIL_3516C)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V100_NPTL)
export SINGLE_NOR_FLASH	=true
export PROJECT_IPC		=true
endif

ifeq ($(BOARD), HI3520A_UCLIBC)
export ARCH				=arm
export PLATFORM			=HI3520A_UCLIBC
export HISIL_SDK		=$(SDK_HISIL_3520A_UCLIBC)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V100_NPTL)
export SMALL_FLASH_SIZE	=true
endif

ifeq ($(BOARD), HI3521_UCLIBC)
export ARCH				=arm
export PLATFORM			=HI3521_UCLIBC
export HISIL_SDK		=$(SDK_HISIL_3521_UCLIBC)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V100_NPTL)
export SMALL_FLASH_SIZE	=true
endif

ifeq ($(BOARD), HI3535)
export ARCH				=arm
export PLATFORM			=HI3535
export HISIL_SDK		=$(SDK_HISIL_3535)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
endif

ifeq ($(BOARD), HI3535_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3535
export HISIL_SDK		=$(SDK_HISIL_3535)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
export SINGLE_NAND_FLASH=true
endif

ifeq ($(BOARD), HI3536_SINGLE_NAND_128M)
export ARCH				=arm
export PLATFORM			=HI3536
export HISIL_SDK		=$(SDK_HISIL_3536)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V400)
export SINGLE_NAND_FLASH=true
endif

ifeq ($(BOARD), HI3536_SINGLE_NOR_16M)
export ARCH				=arm
export PLATFORM			=HI3536
export HISIL_SDK		=$(SDK_HISIL_3536)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V300)
export SINGLE_NOR_FLASH	=true
endif

ifeq ($(PLATFORM), HI3535)
export USED_ETH_ONE		=true
endif

ifeq ($(PLATFORM), HI3536)
export USED_ETH_MULTI   =true
endif

# WIFI module disabled in all platform since X3_V4
export HB_DISABLE_WIFI	=true

########################################
#
# Test board name for slave chip
# 
########################################
ifeq ($(BOARD), SLAVE_3532)
export ARCH				=arm
export PLATFORM			=HI3532
export HISIL_SDK		=$(SDK_HISIL_3532)
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
export BUILD_SLAVE_CHIP =true
endif

ifeq ($(BOARD), x86)
export ARCH				=x86
export PLATFORM			=x86
export HISIL_SDK		=/invalid_folder
export CROSS_COMPILE	=
endif
ifeq ($(BOARD), ambarella)
export ARCH				=arm
export PLATFORM			=ambarella
export HISIL_SDK		=/invalid_folder
export CROSS_COMPILE	=arm-none-linux-gnueabi-
endif
ifeq ($(BOARD), montavista)
export ARCH				=arm
export PLATFORM			=montavista
export HISIL_SDK		=/invalid_folder
export CROSS_COMPILE	=arm_v5t_le-
endif
ifeq ($(BOARD), pnx8400)
export ARCH				=arm
export PLATFORM			=pnx8400
export HISIL_SDK		=/invalid_folder
export CROSS_COMPILE	=arm-cortex-linux-gnueabi-
endif

ifeq ($(BOARD), HI3518)
export ARCH				=arm
export PLATFORM			=HI3518
export HISIL_SDK		=/invalid_folder
export CROSS_COMPILE	=$(CROSS_ARM_HISI_V200)
endif

########################################
#
# xxxx specific setup
# 
########################################
ifeq ($(SINGLE_NAND_FLASH), true)
export BUILD_MINI_UBOOT	=true
export PACK_MINI_UBOOT	=y
endif

# Used: DDR0_16BIT_1GB_DDR1_8BIT_2GB
ifeq ($(DDR_USE_STR), n)
export DDR_CONF	=
else
export DDR_CONF =$(DDR_USE_STR)
endif

ifeq ($(OEM_KEY_STR), n)
export OEM_KEY_STR_EXT	=
else
export OEM_KEY_STR_EXT	=$(OEM_KEY_STR)
endif

ifeq ($(SINGLE_NAND_FLASH), true)
export ENABLE_CPP_LIBS	=true
endif

# vim:noet:sw=4:ts=4
